package tech.aistar.wyymusicplayer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.wyymusicplayer.mapper.PlayListDetailsMapper;
import tech.aistar.wyymusicplayer.pojo.PlayListDetails;
import tech.aistar.wyymusicplayer.pojo.Song;

import java.util.List;

/**
 * ClassName: PlayListServiceImpl
 * Package: tech.aistar.wyymusicplayer.service
 * Description:
 *
 * @Author: JMOOL
 * @Create: 2025/3/6-08:59
 * @Version: v1.0
 */
@Service
public class PlayListDetailsServiceImpl implements PlayListDetailsService {

    @Autowired
    private PlayListDetailsMapper playListMapper;

    @Override
    public PlayListDetails findPlayLists(Integer id){

        return playListMapper.getPlayLists(id);
    }

    @Override
    public List<Integer> selectSongIdsByPlaylistId(Integer playlistId) {
        return playListMapper.selectSongIdsByPlaylistId(playlistId);
    }

    @Override
    public List<Song> selectById(Integer songId) {
        return playListMapper.selectById(songId);
    }

    @Override
    public List<Song> selectSongsByIds(List<Integer> songIds) {
        return playListMapper.selectSongsByIds(songIds);
    }

}
